package c.a.a.e0;

import android.graphics.PointF;
import c.a.a.b0.e;
import c.a.a.z.b.k;
import c.b.a.a.a;
import java.util.List;

/* compiled from: MiscUtils */
public class f {
    public static PointF a = new PointF();

    public static PointF a(PointF pointF, PointF pointF2) {
        return new PointF(pointF.x + pointF2.x, pointF.y + pointF2.y);
    }

    public static float b(float f, float f2, float f3) {
        return Math.max(f2, Math.min(f3, f));
    }

    public static int c(int i, int i2, int i3) {
        return Math.max(i2, Math.min(i3, i));
    }

    public static int d(float f, float f2) {
        int i = (int) f;
        int i2 = (int) f2;
        int i3 = i / i2;
        int i4 = i % i2;
        if (((i ^ i2) >= 0 ? 1 : null) == null && i4 != 0) {
            i3--;
        }
        return i - (i2 * i3);
    }

    public static float e(float f, float f2, float f3) {
        return a.a(f2, f, f3, f);
    }

    public static void f(e eVar, int i, List<e> list, e eVar2, k kVar) {
        if (eVar.c(kVar.a(), i)) {
            list.add(eVar2.a(kVar.a()).g(kVar));
        }
    }
}
